package com.jdls.tanhua.dubbo;

import com.jdls.tanhua.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @author 嘉德罗斯
 * @date 2021/10/29
 */
public interface CommentApi {
    Integer save(Comment comment);

    List<Comment> findAll(ObjectId mid, Integer page, Integer pagesize);

    Comment find(Long userId, ObjectId movementId, int like);

    Integer delete(Long userId, ObjectId movementId, int like);

    Integer like(ObjectId commentId);

    Integer dislike(ObjectId commentId);

    List<Comment> findLike(Long id, Integer page, Integer pagesize, int type);
}
